'use strict';

webappApp.filter('marker', function () {
  return function (input, map, args) {
    if (input) {
      return new google.maps.Marker(angular.extend({}, {
        map: map,
        position: new google.maps.LatLng(
          input.latitude,
          input.longitude
        )
      }, args));
    }
  };
});